<?php


namespace app\admin\user\validate;


use app\common\validate\BaseValidate;

class UserLevelValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require',
        'title' => 'require',
        'level' => 'require',
        'discount' => 'require',
        'experience' => 'require',
        'icon' => 'require',
        'card_bg' => 'require',
        'remark' => 'must',
    ];

    protected $field = [
        'id' => 'ID',
        'title' => '等级名称',
        'level' => '等级值',
        'discount' => '享受折扣',
        'experience' => '经验值',
        'icon' => '图标',
        'card_bg' => '会员等级背景图',
        'remark' => '等级说明',
    ];
    protected $scene = [
        "id" => [
            'id',
        ],
        "add" => [
            'title',
            'level',
            'discount',
            'experience',
            'icon',
            'card_bg',
            'remark',
        ],
        "update" => [
            'id',
            'title',
            'level',
            'discount',
            'experience',
            'icon',
            'card_bg',
            'remark',
        ],
    ];
}